#include<stdio.h>
#include<math.h>
#define z 100
int main(void)
{
	double n;


	int a[4] = { 6,8,10,12 };
	for (int i = 0; i < 4; i++)
	{
		int y = 0;
		n = z;
		do {

			n = n * (1 + (float)a[i] / z);
			y++;
		} while (n <= 2 * z);
		printf("i=%d%%\n", a[i]);
		printf("y=%d\n", y);

	}
	return 0;
}